package Test1;

import java.util.ArrayList;
import java.util.Collections;

public class Thread_Demo4 {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<Integer>();
        Collections.addAll(list, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000);
        lian_xi_Demo4 t1 = new lian_xi_Demo4(list);
        lian_xi_Demo4 t2 = new lian_xi_Demo4(list);
        t1.start();
        t2.start();
        t1.setName("线程抽奖1");
        t2.setName("线程抽奖2");
    }
}
